<?php 
header('Content-Type:text/html;charset=gbk');
require_once("db_manage.php");
//require_once './bbs/include/common.inc.php';
session_start();
$username = $_SESSION['username'];
$title = $_POST['title'];
$postuser = $_POST['postuser'];
$textlink = $_POST['textlink'];
$turn = $_POST['turn'];
$forumsort = $_POST['forumsort'];

//echo "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

//$travel = array($title,$area,$view,$bed,$traffic,$expense,$num,$costdate,$content,$discuz_uid);
$bbs = array($title,$postuser,$textlink,$turn,$username,$forumsort);
/*
echo $title;
echo "<br>";
echo $postuser;

for($i=0;$i<count($bbs);$i++){
				echo $dairy[$i];
				echo '<p>';			
			}
		
			*/
//update sister link;
//updateSisterLink($linkname, $link);
//addTravel($travel);
//echo "<script>location.href='manage_list_travel.php';<//script>";
addbbsHot($bbs);
if($forumsort==1){
	echo "<script>location.href='manage_home_hot.php?forumsort=1';</script>";
}else if($forumsort==2){
	echo "<script>location.href='manage_home_hot.php?forumsort=2';</script>";
}else if($forumsort==3){
	echo "<script>location.href='manage_home_hot.php?forumsort=3';</script>";
}else if($forumsort==4){
	echo "<script>location.href='manage_home_hot.php?forumsort=4';</script>";
}else{
	echo "<script>location.href='manage_home_hot.php?forumsort=1';</script>";
}
?>